package com.example.boot.ResultEnum;

public enum ResultEnum {
	//系统异常
	SYSTEM_EXC(-1,"系统异常"),
	SUCCESS(0,"成功"),
	A_MINOR(1,"未成年不得进入"),
	NEVER_KEY(-2,"Redis没有该Key"),
	USER_ISHAVE(5,"用户已存在"),
	ADDUSER_SUSSESS(4,"成功注册"),
	USER_HAVET(6,"用户不存在"),
	X_PWD(7,"密码错误"),
	TOO_FAR_AWAY(8,"距离太远"),
	ORDER_Y(9,"订单生成错误")
	

	;
	private Integer code;
	private String msg;

	private ResultEnum(Integer code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	public Integer getCode() {
		return code;
	}

	public String getMsg() {
		return msg;
	}

}
